﻿using System;

namespace YArchitech.Plumbing
{
	public class HYFireNode
	{
		public int nNum { get; set; }

		public bool bSf { get; set; }

		public bool bRead { get; set; }

		public double dH { get; set; }

		public bool bFire { get; set; }

		public HYFireNode()
		{
			this.nNum = -1;
			this.bSf = false;
			this.bFire = false;
		}

		public static int CompareByNum(HYFireNode n1, HYFireNode n2)
		{
			if (n1 == null && n2 == null)
			{
				return 0;
			}
			if (n1 == null)
			{
				return -1;
			}
			if (n2 == null)
			{
				return 1;
			}
			if (n1.nNum == n2.nNum)
			{
				return 0;
			}
			if (n1.nNum > n2.nNum)
			{
				return 1;
			}
			return -1;
		}

		public HYFire fireData;
	}
}
